package org.example.mall.admin.model.enums.manage;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 最多支持三级id关联
 *
 * @author hzq
 * @date 2022/1/13 15:45
 */
@Getter
@AllArgsConstructor
public enum SysRelationEnum {

    ACCOUNT_ROLE("account.account_id", "role.role_id", "account_role", "用户关联角色", null, null),

    ROLE_MENU("role.role_id", "menu.menu_id", "role_menu", "角色关联菜单", null, null);

    /**
     * 来自 table.column
     */
    private String fromId;

    /**
     * 去往 table.column
     */
    private String toId;

    /**
     * 标识 伪表名
     */
    private String tbName;

    /**
     * 描述
     */
    private String desc;

    /**
     * 去往一级id table.column
     */
    private String toOneId;

    /**
     * 去往二级id table.column
     */
    private String toTwoId;
}
